
package com.tebiecloud.yunst.client.constants;
/**
 * @author MI
 *
 */
public enum ResultEnum implements BaseResult{
	
	YUN_ST_USER_NOT_FIND(300401, "用户查询不存在"),
    YUN_ST_USER_REAL_NAME(300402, "用户已经实名"),
    YUN_ST_USER_ACCT(300403, "用户已经绑定标识"),
    YUN_AGENT_COLLECT_AMOUNT(300404, "金额不能为零"),
    YUN_ST_USER_SIGNCONTRACT(300405, "用户已经签约"),
    YUN_ST_USER_PHONE_ERROR(300406, "手机号码格式错误"),
    YUN_ST_USER_IDENTITYNO_ERROR(300407, "身份证格式错误"),
    YUN_ST_BANK_NOT_FIND(300408, "银行信息不存在"),
    YUN_ST_AGENT_ACCT(300409, "用户未标识，不能发起付款"),
    YUN_ST_CARD_EXIT(300410, "该银行卡已经绑定"),
    YUN_ST_USER_CREATE_ERROR(300411, "用户创建有误"),
    YUN_WITHDRAW_ACCOUNT_FIAL(300412, "提现账号查询失败"),
    YUN_WITHDRAW_AMOUNT_FIAL(300413, "提现金额不能过小"),
    YUN_BANK_CARD_NOT_FOUND(300414, "没有绑定银行卡"),
    YUN_REFUND_AMOUNT_ERROR(300415, "退款金额和订单金额不匹配"),
    YUN_REFUND_ORDER_NOTEXIT(300416, "订单查询不存在"),
    YUN_REFUND_ERROR(300417, "订单退款失败"),
    YUN_REFUND_NOT_FOUND(300418, "订单退款信息查询失败"),
    YUN_PAYINFO_NOT_FOUND(300419, "订单支付信息查询失败")
    ;
   

    private int code;

    private String message;

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public static Enum<ResultEnum> getValue(int code) {
		for (ResultEnum ele : values()) {
			if(ele.getCode()==code) return ele;
		}
		return null;
    }

}
